package com.business.dynamic.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * 动态属性表 实体类
 * @author chenjiehong
 * @date 2019-11-29 15:15:38
 * @since 1.0
 */
@TableName(value = "dynamic_attribute")
public class DynamicAttribute {


    // columns START

	@TableId(value = "id",type=IdType.AUTO)
	private Integer id; 

	/**
	 * 动态id
	 */
	@TableField(value = "dynamic_id")
	private Integer dynamicId; 

	/**
	 * 属性名称
	 */
	private String name; 

	/**
	 * 属性值
	 */
	private String value; 

	/**
	 * 属性编码
	 */
	private String code; 

	/**
	 * 单位
	 */
	private String unit; 

	/**
	 * 属性值类型
	 */
	@TableField(value = "value_type")
	private String valueType; 

	/**
	 * 类型 0：系统默认属性 1：自定义属性
	 */
	private Integer type; 

	/**
	 * 系统默认属性id
	 */
	@TableField(value = "attribute_id")
	private Integer attributeId;
	// columns END


	public Integer getId() {
		return id;
	}

    public void setId(Integer id) {
    	this.id = id;
    }
	public Integer getDynamicId() {
		return dynamicId;
	}

    public void setDynamicId(Integer dynamicId) {
    	this.dynamicId = dynamicId;
    }
	public String getName() {
		return name;
	}

    public void setName(String name) {
    	this.name = name;
    }
	public String getValue() {
		return value;
	}

    public void setValue(String value) {
    	this.value = value;
    }
	public String getCode() {
		return code;
	}

    public void setCode(String code) {
    	this.code = code;
    }
	public String getUnit() {
		return unit;
	}

    public void setUnit(String unit) {
    	this.unit = unit;
    }
	public String getValueType() {
		return valueType;
	}

    public void setValueType(String valueType) {
    	this.valueType = valueType;
    }
	public Integer getType() {
		return type;
	}

    public void setType(Integer type) {
    	this.type = type;
    }

	public Integer getAttributeId() {
		return attributeId;
	}

	public void setAttributeId(Integer attributeId) {
		this.attributeId = attributeId;
	}

	@Override
	public String toString() {
		String log = ""; 
		log += "[id:" + getId() + "]";
		log += "[dynamicId:" + getDynamicId() + "]";
		log += "[name:" + getName() + "]";
		log += "[value:" + getValue() + "]";
		log += "[code:" + getCode() + "]";
		log += "[unit:" + getUnit() + "]";
		log += "[valueType:" + getValueType() + "]";
		log += "[type:" + getType() + "]";
		log += "[attributeId:" + getAttributeId() + "]";
		return log;
	}
}